package com.wangdong.rxjavaandroid.javaobserver.demo1;

import java.util.List;

/**
 * 学生
 */
public class Student implements IStudent {
    /**
     * 学生名字
     */
    private String name;
    private List<Course> courses;

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    public String getName() {
        return name;
    }

    public Student setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * 接口通知 老师改变后的电话号
     *
     * @param teacherNum
     */
    @Override
    public void updateInfo(String teacherNum) {
        System.out.println("老师电话号码:"+ teacherNum);

    }


}
